package com.lq.educationsystem.examination.entiy;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName student_examination_tb
 */
@Data
public class StudentExaminationTb implements Serializable {
    /**
     * 学生考试id
     */
    private Integer studentExaminationId;

    /**
     * 考试id
     */
    private Integer examinationId;

    /**
     * 学生考试id
     */
    private Integer studentId;

    /**
     * 学生考试状态 1 考试  0缺考
     */
    private Object examinationStatus;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StudentExaminationTb other = (StudentExaminationTb) that;
        return (this.getStudentExaminationId() == null ? other.getStudentExaminationId() == null : this.getStudentExaminationId().equals(other.getStudentExaminationId()))
            && (this.getExaminationId() == null ? other.getExaminationId() == null : this.getExaminationId().equals(other.getExaminationId()))
            && (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
            && (this.getExaminationStatus() == null ? other.getExaminationStatus() == null : this.getExaminationStatus().equals(other.getExaminationStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStudentExaminationId() == null) ? 0 : getStudentExaminationId().hashCode());
        result = prime * result + ((getExaminationId() == null) ? 0 : getExaminationId().hashCode());
        result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
        result = prime * result + ((getExaminationStatus() == null) ? 0 : getExaminationStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", studentExaminationId=").append(studentExaminationId);
        sb.append(", examinationId=").append(examinationId);
        sb.append(", studentId=").append(studentId);
        sb.append(", examinationStatus=").append(examinationStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}